home *** CD-ROM | disk | FTP | other *** search
/ Mac Magazin/MacEasy 27 / Mac Magazin and MacEasy Magazine CD - Issue 27.iso / Grafik & Text / Sans-Faute⁄Grammaire ƒ / Adaptateurs / spécial HyperCard / Sources des scripts (anglais) / Vérification Carte HyperCard < prev    next >
Text File  |  1996-02-20  |  746b  |  30 lines

  1. tell application "HyperCard 2.3"
  2.     activate current stack
  3.     
  4.     set num to 1
  5.     repeat number of card field times
  6.         if not dontSearch of card field num then
  7.             set texttoCheck to card field num as styled text
  8.             tell application "Sans-Faute/Grammaire 2"
  9.                 set textchecked to Checking texttoCheck
  10.             end tell
  11.             set card field num to textchecked
  12.         end if
  13.         set num to num + 1
  14.     end repeat
  15.     
  16.     set num to 1
  17.     repeat number of background field times
  18.         if not dontSearch of background field num then
  19.             set texttoCheck to background field num as styled text
  20.             tell application "Sans-Faute/Grammaire 2"
  21.                 set textchecked to Checking texttoCheck
  22.             end tell
  23.             set background field num to textchecked
  24.         end if
  25.         set num to num + 1
  26.         
  27.     end repeat
  28. end tell
  29.  
  30.